package lib;

/**
 * Utility Class to encapsulate the location of the cell in the world
 */
public class Location {

	private int x;
	private int y;
	
	/**
	 * Constructor for the class
	 */
	public Location(int x, int y){
		this.x = x;
		this.y = y;
	}
	
	/**
	 * Returns the X coordinate of a given location. 
	 * @return integer X coordinate
	 */
	public int getX(){
		return this.x;
	}
	
	/**
	 * Returns the Y coordinate of a given location.
	 * If the user wants a 1D automata, getY() should simply
	 * return 0 to signify it is only looking at one dimension.
	 * @return integer Y coordinate
	 */
	public int getY(){
		return this.y;
	}
	
}
